from util import HttpRequestsUtil
from config import Automation_data

env_ip = Automation_data.api_test_env
url_post = env_ip + '/c4i-admin/sysaccount/userLogin'


def do_post(sys_code, password, platform):
    params = {
        'sys_code': sys_code,
        'password': password,
        'platform': platform
    }
    return HttpRequestsUtil.do_post(url_post, params)
